package cn.myjerry.reflect;

import cn.myjerry.server.demo3.Servlet;

/**
 * 创建实例  调用空构造
 * @author zpon
 *
 */
public class Demo02 {
	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
		Class<?> clz = Class.forName("cn.myjerry.server.demo3.LoginServlet");
		Servlet ser = (Servlet) clz.newInstance();
	}
}
